package com.sbootv.sys.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sbootv.sys.pojo.SysUser;
import com.sbootv.sys.service.SysUserService;

@RestController
@RequestMapping("/sysUser")
public class SysUserController {

	@Autowired
	private SysUserService sysUserService;
	
	@RequestMapping(value="/get", method = RequestMethod.POST)
	public SysUser get(String id){
		return sysUserService.get(id);
	}
	
	@RequestMapping(value="/list", method = RequestMethod.POST)
	public List<SysUser> list(Map<String,Object> map){
		return sysUserService.list(map);
	}
}
